<?php
class UserAction extends  Action {
	public function index(){
            $user=M('User'); 
            import("@.ORG.Page");       //导入分页类
            $count = $user->count();    //计算总数
            $p = new Page($count, 5);
            $list = $user->limit($p->firstRow . ',' . $p->listRows)->order('create_time desc')->select();
            $page = $p->show();
            $this->assign("page", $page); 
            $this->assign('ulist',$list);
            $this->display('Index:userlist');
	}
}